<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>购物车</title>
    <link rel="stylesheet" href="css/style.css">
    <script src="js/script.js"></script>
</head>
<body>
    <header>
        <nav>
            <a href="category.html">首页</a>
            <a href="index.html">分类</a>   
               <!-- category 才是分类 index.html才是首页 -->
            <a href="cart.html">购物车</a>
            <a href="profile.html">我的</a>  
            &nbsp
            <button><a href="login.html">登录</a></button>
        </nav>
    </header>
    <main>
        <h2>购物车</h2>
        <div id="cart-items"></div>
        <p id="total-price">总价: ¥0</p>
        <button onclick="clearCart()">清空购物车</button>
        <button )">删除购物信息</button>
    </main>
</body>
</html>